// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.ai.states;

import zombie.ai.State;
import zombie.characters.IsoGameCharacter;
import zombie.characters.IsoZombie;

public final class ZombieFaceTargetState extends State {
    private static final ZombieFaceTargetState _instance = new ZombieFaceTargetState();

    public static ZombieFaceTargetState instance() {
        return _instance;
    }

    @Override
    public void enter(IsoGameCharacter owner) {
    }

    @Override
    public void execute(IsoGameCharacter owner) {
        IsoZombie isoZombie = (IsoZombie)owner;
        if (isoZombie.getTarget() != null) {
            isoZombie.faceThisObject(isoZombie.getTarget());
        }
    }

    @Override
    public void exit(IsoGameCharacter owner) {
    }
}
